<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$template_dir = $this->baseurl.'/templates/'.$this->template.'/';
$user = JFactory::getUser();
if($user->get('guest') == 1){
	header("Location: index.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<?php
	 unset($this->_scripts[$this->baseurl.'/media/system/js/mootools.js']);
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="<?php echo $template_dir;?>src/css/style.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $template_dir;?>src/css/reveal.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $template_dir;?>src/css/custom-form.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $template_dir;?>src/css/scrollbar.css"/>
<!--[if IE]>
<link href="<?php echo $template_dir;?>src/css/ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 9]>
<link href="<?php echo $template_dir;?>src/css/ie9.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if lt IE 9]>
<link href="<?php echo $template_dir;?>src/css/ie78.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 7]>
<link href="<?php echo $template_dir;?>src/css/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script type="text/javascript" src="<?php echo $template_dir;?>src/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="<?php echo $template_dir;?>src/js/jquery.easing.js"></script>
<script type="text/javascript" src="<?php echo $template_dir;?>src/js/jquery.reveal.js"></script>
<script type="text/javascript" src="<?php echo $template_dir;?>src/js/jquery.cycle.all.js"></script>
<script type="text/javascript" src="<?php echo $template_dir;?>src/js/jquery.animate-colors.js"></script>
<script type="text/javascript" src="<?php echo $template_dir;?>src/js/jquery.placeholder.min.js"></script>
<script type="text/javascript" src="<?php echo $template_dir;?>src/js/jquery.tinyscrollbar.min.js"></script>
<script type="text/javascript" src="<?php echo $template_dir;?>src/js/jquery.scrollTo-min.js"></script>
<script type="text/javascript" src="<?php echo $template_dir;?>src/js/jquery.localscroll-1.2.7-min.js"></script>
<script type="text/javascript" src="<?php echo $template_dir;?>src/js/custom-form-elements.js"></script>
<script type="text/javascript" src="<?php echo $template_dir;?>src/js/init.js"></script>

</head>
<body>
	<div class="container">
		<!--Header begin-->
        <div class="header clear-fix">
            <div class="logo">
                <h2><a href="index.php">Danskcafe</a></h2>
            </div>
            <div class="header-member-info clear-fix">
                <p>Velkommen, <?php echo $user->get('name');?></p>
                <a id="member-logout" href="index.php?option=com_user&task=logout">Logout</a>
            </div>
            <div class="header-info">
                <h3>Kontaktoplysninger</h3>
                <p>Tlf: +45 26 80 88 11</p>
                <p>Mail: post@danskcafeservice.dk</p>
                <p>Web: www.danskcafeservice.dk</p>
            </div>
            <div class="header-search">
            	<jdoc:include type="modules" name="search" />
            </div>
        </div>
        <!--Header end-->
        
        <div class="content">
            <jdoc:include type="modules" name="navigation" />
            <!--Main begin-->
            <div style="display: none;">
                <jdoc:include type="message" />
            </div>
            <jdoc:include type="component" />
            
            <!--Main end-->
        </div>
        <!--Footer begin-->
		<div class="footer">
            <p>Dansk Cafe Service | Vesterbrogade 74, 3. sal | 1620 København V| Tlf: +45 26 80 88 11 | Mail: <a href="mailto:post@danskcafeservice.dk">post@danskcafeservice.dk</a> | CVR: 30892968</p>
            <img id="imgCafe" src="<?php echo $template_dir;?>src/images/imgFooter.png" alt="Coffee" />
        </div>
        <!--Footer end-->
        <div class="bottom-body"></div>	
    </div>
<style>
img{border: none;}
.bg_alert{ width:270px; height:115px; background:url(templates/cafe/bg_alert.png) no-repeat top left; margin:0px auto; padding:15px 0px 0px 83px; color:#000;}
.m35l{ margin-left:35px;}
</style>
<script type="text/javascript">
	jQuery(document).ready(function(cash) {

		if(jQuery("#system-message  ul li").html() != null) {
			$('#alert').html(jQuery("#system-message  ul li").html());
			$('#backoverlay').show();
			$('#show_popup').show();	  
		};
		close_popup=function(){		
			var fel=$('#f_focus').html();
			$('#backoverlay').hide();
			$('#show_popup').hide();
			$('#' + fel ).focus();
		};
	});
</script>
<div class="bg_alert" id="show_popup" style="display:none; position: fixed; top: 35%; left: 50%; z-index:10001; margin-left:-140px;">
<span id="f_focus" style="display:none;"></span>
<!--<div style="padding: 3px 20px 10px 15px; min-height: 60px; font-size: 11px; margin: 0; " id="alert"></div>  --> <div style="margin:0; padding-top:12px; padding-right: 15px; min-height:60px; font-size: 12px;" id="alert"></div>
<div style="padding-left: 40px;"><a href="javascript:void(0);" onclick="close_popup();"><img src="templates/cafe/bt_luk1.png" alt="" /></a></div>
</div>
<div style="display: none;position: fixed; top: 0;left: 0;width: 100%;height: 100%;background-color: #000000;z-index:10000;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);" id="backoverlay"></div>
</body>
</html>